<?php
class Con_index extends Acan{
	public $defaultAct='index';
	public $Conread = '首页';
	public $Actread = array('index'=>'首页','help'=>'帮助中心');
	function __construct($ainfo=null){
		parent::__construct($ainfo=null);
		$this->danhao_sale_fun = Afunc_option('Acan_danhao_sale_fun')->get();
		$this->Appname = Afunc_option('Acan_danhao_sale_fun')->get();
	}
	function Act_index(){
		$this->atitle = $this->Actread[$this->Aact];
		$con->order='id DESC';
		$con->selete='id,title,update';
		$con->where='status=1';
		$con->limit=9;
		$news = Afun_db()->model(Acan_table_danhao_news)->findAll($con);
		include $this->Atpl();
	}
	function Act_help(){
		/*$con->select = 'a.*,b.upid as pid';
		$con->where = 'a.level=3';
		$con->join="LEFT JOIN `pre_common_district` b ON a.upid=b.id";
		$rs = Afun_db()->model('pre_common_district')->findAll($con);
		foreach ($rs as $k => $v) {
			$dist[$v['name']]=$v['id'];
			$distc[$v['name']]=$v['upid'];
			$distp[$v['name']]=$v['pid'];
		}
		print_r(Ajson_encode($distp));
		return;*/
		$this->atitle = $this->Actread[$this->Aact];
		include $this->Atpl();
	}
}

?>